<template>
  <div>
    <button @click="decrement">-</button>
    <input type="number" v-model="count">
    <button @click="increment">+</button>
  </div>
</template>

<script>
export default {
  data(){
    return{
      count:1,

    }

  },
  methods:{
    increment(){
      this.count++

    },
    decrement(){
      if(this.count>1){
        this.count--;

      }

    },

  },
}
</script>

<style scoped>

</style>